We are all in one thread, anyway.
struct _GtkCssSection
{
- volatile gint ref_count;
+ gint ref_count;
GtkCssSectionType section_type;
GtkCssSection *parent;
GFile *file;
{
gtk_internal_return_val_if_fail (section != NULL, NULL);
- g_atomic_int_add (§ion->ref_count, 1);
+ section->ref_count += 1;
return section;
}
{
gtk_internal_return_if_fail (section != NULL);
- if (!g_atomic_int_dec_and_test (§ion->ref_count))
+ section->ref_count -= 1;
+ if (section->ref_count > 0)
return;
if (section->parent)